<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
        <!DOCTYPE html>
        <html xmlns="http://www.w3.org/1999/xhtml">

        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <title>${type.name}</title>
            <meta name="keywords" content="" />
            <meta name="description" content="" />
            <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/index-2.css" />
            <script type="text/javascript" src="${pageContext.request.contextPath}/static/tool/jquery.js"></script>
            <script src="${pageContext.request.contextPath}/static/js/bookdetails-1.js"></script>

        </head>

        <body>
            <div class="pb-container">
                <div class="pb-container-main pb-after-clear">

                    <!-- 公共头部 -->
                    <jsp:include page="../common/head.jsp"></jsp:include>
                    <!-- 面包屑 -->
                    <div class="pb-main pb-breadcrumbs pb-breadcrumbs-nav pb-mt40 pb-size-small"> <a href='http://127.0.0.4/'>主页</a> >
                        <a href='${pageContext.request.contextPath}/guest/type/list?type=${page.type}'>${type.name}</a> > </div>
                    <!-- 面包屑结束 -->
                    <!-- 当前页面内容 -->
                    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/booklist-2.css" />
                    <div class="pb-main pb-mt20">
                        <!--专题章展示-->
                        <c:if test="${page.data[0].id != null}">
                            <div class="topics-main pb-inner-main pb-mt10">
                                <ul class="pb-mt30">
                                    <c:forEach items="${page.data}" var="novel">
                                        <li>
                                            <a href="${pageContext.request.contextPath}/guest/book/${novel.id}/1"><img src="${pageContext.request.contextPath}/static/images/${novel.fileName}" class="pb-fl" alt="" /></a>
                                            <dl>
                                                <dt> <a href="${pageContext.request.contextPath}/guest/book/${novel.id}/1">${novel.name}</a> </dt>
                                                <dd class="pb-mt10"> <strong>作者</strong> ： <a>${novel.authorName}</a> </dd>
                                                <dd class="pb-mt10"> <strong>日期</strong> ： <a><fmt:formatDate value="${novel.createTime}" pattern="yyyy-MM-dd"/></a> </dd>
                                                <dd> ${novel.desc}</dd>
                                            </dl>
                                        </li>
                                    </c:forEach>
                                </ul>
                                <div class="pb-mt50 pb-listpage">
                                    <c:choose>
                                        <c:when test="${page.currentPage > 1 }">
                                            <li><a href="${pageContext.request.contextPath}/guest/type/list/${page.type}/${page.currentPage-1 }">上一页</a></li>
                                        </c:when>
                                        <c:otherwise>
                                            <li><a href="#">上一页</a></li>
                                        </c:otherwise>
                                    </c:choose>
                                    <c:forEach var="p" begin="1" end="${page.pageCount }">
                                        <li><a href="${pageContext.request.contextPath}/guest/type/list/${page.type}/${p }">${p }</a></li>
                                    </c:forEach>
                                    <c:choose>
                                        <c:when test="${page.currentPage < page.pageCount }">
                                            <li><a href="${pageContext.request.contextPath}/guest/type/list/${page.type}/${page.currentPage+1 }">下一页</a></li>
                                        </c:when>
                                        <c:otherwise>
                                            <li><a href="#">下一页</a></li>
                                        </c:otherwise>
                                    </c:choose>
                                    <li><a href="${pageContext.request.contextPath}/guest/type/list/${page.type}/${page.pageCount }">末页</a></li>
                                </div>
                            </div>
                        </c:if>

                        <div class="commside">
                            <!--右侧我要投稿公共部分-->

                            <!--右侧我要投稿公共部分-->
                            <div class="pb-main-side pb-iblock pb-after-clear pb-fr pb-mt40">
                                <h6 class="pb-clr1 pb-size-big">${type.name}新书</h6>
                                <div class="pb-line2 pb-mt5"></div>
                                <ul class="pb-mt10 previous-term pb-size-normal">
                                    <c:forEach items="${newNovels}" var="novel">
                                        <li> <span>.</span>
                                            <a href="${pageContext.request.contextPath}/guest/book/${novel.id}/1">${novel.name}</a>
                                            <span class="pull-right"><fmt:formatDate value="${novel.createTime}" pattern="yyyy-MM-dd"/></span>
                                            <div class="pb-line2"></div>
                                        </li>
                                    </c:forEach>

                                </ul>
                            </div>
                            <div style="clear:both;"></div>
                        </div>
                    </div>
                    <!-- 当前页面内容结束 -->
                    <div style="clear:both;"></div>
                    <!-- 公共尾部 -->

                    <div style="clear:both;"></div>
                    <div class="pb-footer">
                        <div class="pb-footer-wp">
<%--                            <div class="pb-main pb-footer-cnt pb-size-small"> <span class="pb-fl">Copyright &copy; 2002-2011 AB模板网 Www.AdminBuy.Cn 版权所有 <a href=http://www.dedecms.com target='_blank'>Power by DedeCms</a></span>--%>
<%--                                <ul class="pb-fr">--%>
<%--                                    <li><a href="/" target="_blank">首页</a></li>--%>

<%--                                    <li><a href="/a/yxwz/" target="_blank">优秀文章</a></li>--%>

<%--                                    <li><a href="/a/qtsj/" target="_blank">倾听世界</a></li>--%>

<%--                                    <li><a href="/a/jxed/" target="_blank">叫醒耳朵</a></li>--%>

<%--                                    <li><a href="/a/mryx/" target="_blank">每日一笑</a></li>--%>

<%--                                    <li><a href="http://www.adminbuy.cn/" target="_blank">技术支持</a></li>--%>
<%--                                </ul>--%>
<%--                            </div>--%>
                        </div>
                    </div>
                </div>
            </div>
        </body>

        </html>